package com.songlanyun.modules.offlinegoods.service;

import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.offlinegoods.entity.OfflineGoods;
import com.songlanyun.modules.offlinegoods.entity.OfflineGoodsType;
import com.songlanyun.modules.offlinegoods.model.dto.OfflineGoodsTypeDTO;

import java.util.List;
import java.util.Map;

/**
 * 线下商品类型
 *
 * @author lijiahe
 * @date 2023-02-11
 */
public interface OfflineGoodsTypeService extends IBaseService<Long, OfflineGoodsType> {

    List<OfflineGoodsType> queryList(Map<String, Object> params);

    /**
     * 线下商品类型详情
     *
     * @param id 主键id
     * @param tw
     * @return
     */
    OfflineGoodsType loadOfflineGoodsTypeById(Long id, Boolean tw);

    void saveDto(OfflineGoodsTypeDTO dto);

    void updateDto(Long shopId, OfflineGoodsTypeDTO dto);

    void deleteWithValidById(Long id, Long shopId, Boolean isValid);
}

